// JavaScript Document
// Validaciones para la forma de captura de laboratorio

function visible(n,div,objeto){
	if(n == 1){
		$(div).style.display = "block";
	}else{
		$(div).style.display = "none";
		$F(objeto) = '';
	}
}


function liga(pagina,div,param){
	var x = Math.random()*1000;
	x = Math.round(x);
	$(div).style.display = "block";
	$(div).innerHTML = "<center><img src='images/aero_busy_xl.gif' border='0'></img>&nbsp;<strong>Cargando...</strong></center>";
	var url = pagina+"&x="+x;
	if (param) url = url+"&campo="+param;
	new Ajax.Updater(div, url);
}
